import request from '@/utils/request'

// 查询关系项列表
export function listRelationitem(query) {
  return request({
    url: '/rva/relationitem/list',
    method: 'get',
    params: query
  })
}

// 查询关系项详细
export function getRelationitem(id) {
  return request({
    url: '/rva/relationitem/' + id,
    method: 'get'
  })
}

// 新增关系项
export function addRelationitem(data) {
  return request({
    url: '/rva/relationitem',
    method: 'post',
    data: data
  })
}

// 修改关系项
export function updateRelationitem(data) {
  return request({
    url: '/rva/relationitem',
    method: 'put',
    data: data
  })
}

// 删除关系项
export function delRelationitem(id) {
  return request({
    url: '/rva/relationitem/' + id,
    method: 'delete'
  })
}

// 导出关系项
export function exportRelationitem(query) {
  return request({
    url: '/rva/relationitem/export',
    method: 'get',
    params: query
  })
}